<template>
  <div id="user-layout">
    <div class="user-layout-header">
      <span>{{ organization }}</span>
    </div>
    <div class="container">
      <router-view></router-view>
    </div>
    <footer class="footer">
      <div class="copyright" v-if="copyright">
        <span> ——— {{ copyright }} &nbsp;&nbsp;———</span>
      </div>
    </footer>
  </div>
</template>

<script>
import config from '@/config/defaultSettings'

export default {
  name: 'UserLayout',
  data () {
    return {
      copyright: config.copyright,
      organization: config.organization
    }
  }
}
</script>

<style lang="less" scoped>
@import url('~@/style/_var.less');
#user-layout {
  position: relative;
  height: 100vh;
  .user-layout-header {
    padding: 0 24px;
    height: 80px;
    font-size: 32px;
    font-weight: bold;
    color: @heading-color;
    line-height: 80px;
    .logo {
      margin-right: 8px;
    }
  }
  .container {
    height: calc(100vh - 160px);
    background-image: url('~@/assets/login.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .footer {
    height: 80px;
  }
}
</style>
